﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO.Projectos;

namespace SGPFWebApp.Controlos
{
    public partial class DetalheProjecto : System.Web.UI.UserControl
    {

        public Projecto Projecto { get; set; }

        public int projectoID;

        protected void Page_Load(object sender, EventArgs e)
        {
            int.TryParse(inputIDProjecto.Value, out projectoID);
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if(Projecto != null)
                inputIDProjecto.Value = Projecto.ID.ToString();
        }
    }
}